package com.github.butid.data.netty.annotation;

import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * 命令注解, 用于注解在消息处理类以及方法上
 * <p>
 * Created By WangMing On 2019-12-06
 **/
@Documented
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Component
public @interface CommandController {

    /**
     * 命令类别
     * @return
     */
    String cmdType();

    /**
     * 命令编码
     * @return
     */
    String cmdCode() default "*";
}
